package zjc.方法;

public class 比较俩个数组是否一样 {
    public static void main(String[] args) {
    int[]arr1={1,2,3};
    int[]arr2={1,2,3};
        System.out.println(bijiao(arr1, arr2));
    }
    public static boolean bijiao(int[]arr1,int[]arr2) {
        if (arr1.length == arr2.length) {
            for (int i = 0; i < arr1.length; i++) {
                if (arr1[i] != arr2[i]) {
                    return false;
                }
            }
            return true;
        }
        return false;
    }
}
